/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Menus;

import Control.ButtonController;
import Control.GameController;
import UserInterface.Button;
import gleem.linalg.Vec4f;

/**
 * Menu de pausa
 * @author Gustavo Buzogany Eboli
 */
public class PauseMenu extends Menu{
    public PauseMenu(GameController gc)
    {
        super(gc);

        Button resume = new Button("resume",412, 350, 200, 30, "Resume");
        resume.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        Button newGame = new Button("newGame",412, 400, 200, 30, "New Game");
        newGame.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        Button loadGame = new Button("loadGameIngame",412, 450, 200, 30, "Load Game");
        loadGame.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        Button saveGame = new Button("saveGame",412, 500, 200, 30, "Save Game");
        saveGame.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        Button ranking = new Button("highscoreIngame", 412, 550, 200, 30, "Highscore");
        ranking.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        Button exit = new Button("exit",412, 600, 200, 30, "Exit");
        exit.setColor(new Vec4f(0.3f, 0.3f, 1.0f, 1.0f));

        buttonList.add(resume);
        buttonList.add(newGame);
        buttonList.add(loadGame);
        buttonList.add(saveGame);
        buttonList.add(ranking);
        buttonList.add(exit);

        ButtonController bc = new ButtonController(gc);

        resume.addButtonListener(bc);
        newGame.addButtonListener(bc);
        loadGame.addButtonListener(bc);
        saveGame.addButtonListener(bc);
        ranking.addButtonListener(bc);
        exit.addButtonListener(bc);
    }
}
